<?php

function trace($var){
    McCube_Debug::trace($var);
}

class McCube_Debug{

    public static function trace($var){
        $var = print_r($var, true);

        echo self::_htmlOutput($var);
    }

    protected static function _htmlOutput($string){
        return '<pre>'
            .$string
        .'</pre>';
    }


}